<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>记账本</title>
   <link rel="stylesheet" href="/stylesheets/account.css"></link>
</head>

<body>
    <h2>账目列表</h2>
    <table>
        <tr>
            <th>日期</th>
            <th>类别</th>
            <th>金额</th>
            <th>备注</th>
        </tr>
        <%list.map(item=>{ %>
        <tr>
            <td><%= dayjs(item.date).format('YYYY-MM-DD') %></td>></td>
            <td><%=item.category %></td>
            <td><%=item.amount %></td>
            <td><%=item.note %></td>
        </tr>
       <%   })%>
    </table>
</body>

</html>